package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {
    List<Student> page(StudentQueryParam studentQueryParam);

    void delete(@Param("ids") List<Integer> ids);

    void saveStudent(Student student);

    Student findById(Integer id);

    void updateStudent(Student student);

    Map<String, Integer> violationScore(Integer id);

    List<Map<String, Object>> getStudentDegreeData();

    List<Map<String, Object>> getStudentCountData();

    List<Student> findByClazzId(Integer clazzId);
}
